//
//  LWXMusicDownloadTask.h
//  EPA
//
//  Created by lanou3g on 16/4/28.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import <Foundation/Foundation.h>



// 只管下载
typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);
@interface LWXMusicDownloadTask : NSObject
// URL参数
- (void)downloadUrl:(NSURL *)url progressBlock:(ProgressBlock)proBlock complete:(CompleteBlock)comBlock;
// 开始
- (void)resume;
// 暂停
- (void)suspend;
// 修改 block
- (void)setProgressBlock:(ProgressBlock)progressBlock;
- (void)setCompleteBlock:(CompleteBlock)completeBlock;


@end
